let tops = document.querySelector('.top')
let downs = document.querySelector('.down')
console.log(tops, downs);
render(data.list)
console.log(data.list);

//渲染表格数据
function render(data) {
    var str = data.map((item, index) => {
        return `<tr>
                <th>${item.email}</th>
                <th>${item.name}</th>
                <th>${item.phone}</th>
                <th>${item.ingroup}</th>
                <th>${item.isadmin ? '是' : '否'}</th>
                <th> <span class="statusok">${item.status ? '正常' : '异常'}</span> </th>
                <th> <span>编辑</span> <span>删除</span> </th>
            </tr>`
    }).join('')
    document.querySelector('tbody').innerHTML = str;
}
downs.onclick = () => {
    render(data.list)
    console.log(333);

}